package com.lanhai.zhonglai.third;

import com.lanhai.zhonglai.interfaces.IStationProtocol;

public class StationFactory {
	
	
	
	public static IStationProtocol getStation(String cmd) {
		if(cmd.equals("KS")) {
			return new KuoSan();
		}else if(cmd.equals("ZRX")) {
			return new ZRX(); 
		}else if(cmd.equals("BSG")) {
			return new BSG();
		}else if(cmd.equals("POPAID")) {
			return new POPALD();
		}else if(cmd.equals("ZRS")) {
			return new ZRS();
		}else if(cmd.equals("BM")) {
			return new BM();
		}else if(cmd.equals("ZM")) {
			return new ZM();
		}else if(cmd.equals("SW")) {
			return new SW();
		}else if(cmd.equals("ALD")) {
			return new ALD(); 
		}else if(cmd.equals("JP")) {
			return new JianPao();
		}else if(cmd.equals("HC")) {
			return new HC();
		}else if(cmd.equals("BOE")) {
			return new BOE();
		}else if(cmd.equals("TH")) {
			return new TuiHuo(); 
		}else if(cmd.equals("CB")) {
			return new CaiBao(); 
		}
		return null;
	}
}
